import { Injectable } from '@angular/core';
import { productdataService, product } from './productdata.service';
import { loggerService } from './logger.service';

@Injectable()
export class AnotherProductdataService implements productdataService{
    constructor(public logger:loggerService){}
    getProduct():product{
        this.logger.logger('AnotherProductdataService服务被调用了');
        return new product(2,'三星手机',4886,'这是一款三星手机');
    }
}